<!DOCTYPE html>
<!-- Created by 白墨 on 2021/4/17 22:36:38-->
<html lang="zh-cmn-Hans-CN"  xmlns:th="http://www.thymeleaf.org">

<head th:replace="_fragments ::head(~{::title})">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>标签页</title>

</head>

<body>
<!-- 导航 -->
<nav th:replace="_fragments::menu(3)" class="ui inverted attached segment m-shadow-small">
</nav>


<!-- 中间部分 -->
<div class="m-container m-padded-tb-big">
  <div class="ui container animated fadeInUp">
    <!--header-->
    <div class="ui top attached segment tm">
      <div class="ui middle aligned two column grid">
        <div class="column">
          <h3 class="ui blue header">标签</h3>
        </div>
        <div class="right aligned column">
          共
          <h2 class="ui orange header m-inline-block m-text-thin" th:text="${#arrays.length(tags)}"> 标签数目 </h2> 个
        </div>
      </div>
    </div>

    <div class="ui attached segment m-padded-tb-large tm">
      <a href="#" th:href="@{/tags/{id}(id=${tag.id})}" class="ui basic left pointing large label m-margin-tb-tiny tm-qt" th:classappend="${tag.id==activeTagId} ? 'blue'" th:each="tag:${tags}">
        <span th:text="${tag.name}">标签名</span><div class="detail" th:text="${tag.count}">条数</div>
      </a>
    </div>

    <div class="ui top attached blue segment tm">
      <div class="ui padded vertical segment m-padded-tb-large" th:if="${blog.published}==true" th:each="blog : ${page.list}">
        <div class="ui middle aligned mobile reversed stackable grid" >
          <div class="eleven wide column">
            <h3 class="ui header" ><a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank" class="m-black" th:text="${blog.title}">标题</a></h3>
            <p class="m-text" th:text="|${blog.description}......|">简介</p>
            <div class="ui grid">
              <div class="row">
                <div class="eleven wide column">
                  <div class="ui mini horizontal link list">
                    <div class="item">
                      <img src="https://unsplash.it/100/100?image=1005" th:src="@{${blog.user.avatar}}"  alt="" class="ui avatar image">
                      <div class="content"><a href="#" class="header" th:text="${blog.user.nickname}" >作者昵称</a></div>
                    </div>
                    <div class="item">
                      <i class="calendar icon"></i><span th:text="${#dates.format(blog.createTime,'yyyy-MM-dd')}">2017-10-01</span>
                    </div>
                    <div class="item">
                      <i class="eye icon"></i> <span th:text="${blog.views}">访问次数</span>
                    </div>
                  </div>
                </div>
                <div class="right aligned five wide column">
                  <a href="#" target="_blank" class="ui blue basic label m-padded-tiny m-text-thin m-padded-mini" th:text="${blog.type.name}">分类</a>
                </div>
              </div>
              <div class="row">
                <div class="column">
                  <a href="" th:href="@{/tags/{id}(id=${tag.id})}"  class="ui basic left pointing label m-padded-mini m-text-thin" th:classappend="${tag.id==activeTagId} ? 'blue'" th:each="tag:${blog.tags}" th:text="${tag.name}">标签名</a>
                </div>
              </div>
            </div>
          </div>

          <div class="five wide column">
            <a href="#" th:href="@{/blog/{id}(id=${blog.id})}" target="_blank">
              <img src="https://unsplash.it/800/450?image=1005" th:src="@{${blog.firstPicture}}"  alt="" class="ui rounded image">
            </a>
          </div>
        </div>
      </div>
    </div>

    <!--footer-->
    <div class="ui bottom attached segment" th:if="${page.pages}>1">
      <div class="ui middle aligned two column grid">
        <div class="column">
          <a href="#" th:href="@{/tags/{id}/(id=${activeTagId},pageNum=${page.hasPreviousPage}?${page.prePage}:1)}" th:if="${page.hasPreviousPage}" class="ui mini blue basic button">上一页</a>
        </div>
        <div class="right aligned column">
          <a href="#" th:href="@{/tags/{id}/(id=${activeTagId},pageNum=${page.hasPreviousPage}?${page.prePage}:1)}" th:if="${pageInfo.hasNextPage}" class="ui mini blue basic button">下一页</a>
        </div>
      </div>
    </div>
  </div>
</div>

<br>
<br>
<!-- 底部 -->
<footer th:replace="_fragments::footer" class="ui inverted vertical segment m-padded-tb-massive">
</footer>


<script src="https://lib.baomitu.com/jquery/3.5.1/jquery.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script src="../static/js/APlayer.min.js" th:src="@{/js/APlayer.min.js}"></script>
<script src="../static/js/music.js" th:src="@{/js/music.js}"></script>
<!--    雪花特效-->
<script src="../static/js/snow.js" th:src="@{/js/snow.js}"></script>
<!--板娘 -->
<script src="https://eqcn.ajz.miesnfu.com/wp-content/plugins/wp-3d-pony/live2dw/lib/L2Dwidget.min.js"></script>

<script>
  L2Dwidget.init({
    "model": {
      jsonPath: "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json",
      "scale": 1
    },
    "display": {
      "position": "right",
      "width": 100,
      "height": 200,
      "hOffset": 0,
      "vOffset": -20
    },
    "mobile": {
      "show": true,
      "scale": 0.5
    },
    "react": {
      "opacityDefault": 1,
      "opacityOnHover": 0.2
    }
  });
</script>
<script>
  $('.menu.toggle').click(function() {
    $('.m-item').toggleClass('m-mobile-hide');
  });
  $('#newblog-container').load("[[@{/footer/newblog}]]");
</script>
</body>

</html>